
<template>
  <basic-container>
    <div class="app-container calendar-list-container">
      <avue-form ref="form" v-model="form" :option="option">
        <template slot="ycbdes" scope-slot="scope" v-if="form.ycb==1">
          <el-input class="input-with-select">
            <el-button slot="append" icon="el-icon-search"></el-button>
          </el-input>
        </template>

      </avue-form>
    </div>
  </basic-container>
</template>
<script>
import { mapGetters } from 'vuex'
import option from '@/const/cust/jbxx'
//import option from '@/const/cust/jzs'
//import option from '@/const/cust/ycb'
export default {
  name: 'table_user',
  data() {
    return {
      option: option,
      form: {}
    }
  },
  methods: {},
  watch: {
    'form.ycb'() {
      const index = this.$refs.form.findColumnIndex('ycbdes')
      const column = this.option.column[index]
      if (this.form.ycb == 2) {
        column.display = true
      } else {
        column.display = false
      }
    }
  },
  computed: {
    ...mapGetters(['permissions'])
  },
  created() {}
}
</script>